import {get,post} from '../utils/request'
interface List {
    typeid?:number
    page:number
    psize:number
}
interface Add {
    id:number
    title:string
    picture: string
    sort:number
    typeid:number
    url:string
    enabled:number
}
export const getAdvertisementList = (data:List)=>{
    return get('advertisement/list',data)
}
export const getAdtypeList = (data:List)=>{
    return get('adtype/list',data)
}
export const getAdvertisementGet = (data:any)=>{
    return get('advertisement/get',data)
}
export const getAdvertisementDelete = (data:any)=>{
    return get('advertisement/delete',data)
}
export const getAdvertisementAdd = (data:Add)=>{
    return post('advertisement/add',data)
}
